package com.you.common.enums;

/**
 *<p>
 *错误类型
 *</p>
 *
 * @author : liu.yang.
 * @date : 2018-07-08 星期日 18:19:59
 * @since : 1.0.0
 */
public enum ResponseEnum {
    /**
     * 错误类型
     */
    UNKNOWN_ERROR(-1, "unknown error"),
    SUCCESS(200,"success"),
    ERROR(400,"error"),
    NOT_FOUND(404,"not found"),
    SERVER_ERROR(500,"server not response");

    private Integer code;
    private String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
    }
